package cn.iocoder.yudao.module.instrument.controller.admin.instrument.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 仪器设备管理表新增/修改 Request VO")
@Data
public class InstrumentSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "仪器名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "仪器名称不能为空")
    private String insName;

    @Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "所属部门不能为空")
    private Long deptId;

    @Schema(description = "型号规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "型号规格不能为空")
    private String model;

    @Schema(description = "主要技术指标")
    private String techIndex;

    @Schema(description = "存放位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "存放位置不能为空")
    private String storageLocation;

    @Schema(description = "检定有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "检定有效期不能为空")
    private Integer verificationValidity;

    @Schema(description = "使用状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "使用状态不能为空")
    private Integer useStatus;

    @Schema(description = "附件")
    private String attachmentUrl;

    @Schema(description = "备注")
    private String remark;

}